package com.ald.crossex.util;

/**
 * Created by lishijiong on 15/1/22.
 */
public enum ErrorCode {
    INTERNAL_EXCEPTION(-1,"服务器内部错误"),
    OPTION_SUCCESS(0, "操作成功"),
    OPTION_ERROR(1, "操作失败"),
    WECHAT_ERROR(2,"访问微信出错");


    private Integer code;
    private String message;


    ErrorCode(int code, String message) {
        this.message = message;
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public Integer getCode() {
        return code;
    }
}
